package com.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.pojo.Message;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-05-31 14:31
 * FileName: MessageMapper
 * Description: 留言数据层
 */
@Repository(value = "MessageMapper")
@Mapper
public interface MessageMapper extends BaseMapper<MessageMapper> {
    /***
     * 获取所有留言信箱
     * @return
     */
    List<Message> getMessageList();

    /***
     * 新增留言
     * @param message
     * @return
     */
    int add(Message message);
}
